package com.qingfeng.okms.controller;

import com.qingfeng.base.controller.BaseController;
import com.qingfeng.entity.MyResponse;
import com.qingfeng.entity.system.SystemUser;
import com.qingfeng.entity.system.okms.AamsUser;
import com.qingfeng.okms.service.IAamsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author cb
 * @Description TODO
 * @date 2023/6/14
 */

@RestController
@RequestMapping("/okms/aamsUser")
public class AamsUserController extends BaseController {

    @Autowired
    private IAamsUserService  aamsUserService;

    @GetMapping("/findList")

    public MyResponse findList(AamsUser user) {
        List<AamsUser> list = aamsUserService.findList(user);
        return new MyResponse().data(list);
    }
}
